package com.pengtu.service.project.labs;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pengtu.dao.Page;
import com.pengtu.dao.QueryFilter;
import com.pengtu.dao.project.labs.LabsScopeDao;
import com.pengtu.entity.project.labs.LabsScope;

@Service
@Transactional
public class LabsScopeManager {
	@Autowired
	private LabsScopeDao labsScopeDao;

	// LabsScope Manager //
	@Transactional(readOnly = true)
	public LabsScope getLabsScope(String id) {
		return labsScopeDao.get(id);
	}

	@Transactional(readOnly = true)
	public List<LabsScope> getAllLabsScope() {
		return labsScopeDao.getAll();
	}
	
	public void saveLabsScope(LabsScope labsScope) {
		labsScopeDao.save(labsScope);
	}

	public void deleteLabsScope(String id) {
		labsScopeDao.delete(id);
	}

	public Page<LabsScope> findPageLabsScope(Page<LabsScope> page,
			QueryFilter queryfilter) {
		return labsScopeDao.findPage(page, queryfilter);
	}
}

